using System;

namespace Control {
    public interface IControl {

       public void Paint();
    }

    public interface ITextBox: IControl{
        public void SetText(string text);
    }

    public interface IListBox : IControl{
        public void SetItems(string[] items);
    }

    public interface IComboBox : ITextBox, IListBox {}

    public class ComboBoxImpl : IComboBox {

        public string Text{get;set;}
        public string[] Items{get;set;}

        public void SetText(string text) {
            this.Text = text;
        }
        public void SetItems(string[] items) {
            this.Items = items;
        }
        public void Paint() {
            Console.WriteLine(" :::: Paint :::: ");
            Console.WriteLine(" :::: Text : " + Text);
            foreach(string item in this.Items) {
                Console.WriteLine(" ::::  :::: item: " + item);
            }
            Console.WriteLine(" :::: Paint Done:::: ");
        }
    }

}